package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.OffPrizeEntity;
import com.dragon.modules.yuegou.enums.act.OffPrizeStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 线下抽奖活动奖品表模型类
 * 
 * @author pbuilder generated
 * @date 2019-11-19 10:57:52
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class OffPrize extends OffPrizeEntity {

	@ApiModelProperty("有效开始时间")
	private LocalDateTime beginTime;
	
	@ApiModelProperty("有效结束时间")
	private LocalDateTime endTime;
	
	@ApiModelProperty("可核销商户")
	private String merchantName;
	
	@ApiModelProperty("属性规格")
	private String attrs;
	
	@ApiModelProperty("会员中奖信息")
	private List<OffMemberActivity> memberActivities;

	@ApiModelProperty("商品ID")
	private String goodsId;

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	@ApiModelProperty("状态:0未开奖 1:已开奖未中奖 2:已开奖已中奖 3:即奖开奖")
	private Integer prizeStatus;
	public Integer getPrizeStatus() {
		return prizeStatus;
	}

	public void setPrizeStatus(Integer prizeStatus) {
		this.prizeStatus = prizeStatus;
	}

	public List<OffMemberActivity> getMemberActivities() {
		return memberActivities;
	}

	public void setMemberActivities(List<OffMemberActivity> memberActivities) {
		this.memberActivities = memberActivities;
	}

	public LocalDateTime getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(LocalDateTime beginTime) {
		this.beginTime = beginTime;
	}

	public LocalDateTime getEndTime() {
		return endTime;
	}

	public void setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getAttrs() {
		return attrs;
	}

	public void setAttrs(String attrs) {
		this.attrs = attrs;
	}

	/**
	 * 构造一个空线下抽奖活动奖品表模型对象
	 */
	public OffPrize(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个线下抽奖活动奖品表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public OffPrize(OffPrizeEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个线下抽奖活动奖品表模型对象
	 * 
	 * @param other 其它对象
	 */
	public OffPrize(OffPrize other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public OffPrize id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getGrade() {
    	return grade;
    }

    /**
	 * 设置奖品级别
	 * 
	 * @param grade 奖品级别
	 * @return 当前对象
	 */
    public OffPrize grade(String grade) {
    	this.grade = grade;
    	return this;
    }

	@Override
	public String getName() {
    	return name;
    }

    /**
	 * 设置名称
	 * 
	 * @param name 名称
	 * @return 当前对象
	 */
    public OffPrize name(String name) {
    	this.name = name;
    	return this;
    }

	@Override
	public Integer getSum() {
    	return sum;
    }

    /**
	 * 设置数量
	 * 
	 * @param sum 数量
	 * @return 当前对象
	 */
    public OffPrize sum(Integer sum) {
    	this.sum = sum;
    	return this;
    }

	@Override
	public BigDecimal getPrice() {
    	return price;
    }

    /**
	 * 设置价值
	 * 
	 * @param price 价值
	 * @return 当前对象
	 */
    public OffPrize price(BigDecimal price) {
    	this.price = price;
    	return this;
    }

	@Override
	public String getImg() {
    	return img;
    }

    /**
	 * 设置图片地址
	 * 
	 * @param img 图片地址
	 * @return 当前对象
	 */
    public OffPrize img(String img) {
    	this.img = img;
    	return this;
    }

	@Override
	public OffPrizeStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @param status [枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * @return 当前对象
	 */
    public OffPrize status(OffPrizeStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getActivityId() {
    	return activityId;
    }

    /**
	 * 设置活动Id
	 * 
	 * @param activityId 活动Id
	 * @return 当前对象
	 */
    public OffPrize activityId(String activityId) {
    	this.activityId = activityId;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置商品Id
	 * 
	 * @param skuId 商品Id
	 * @return 当前对象
	 */
    public OffPrize skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

    @Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public OffPrize createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public OffPrize createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public OffPrize modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public OffPrize modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 * @return 当前对象
	 */
    public OffPrize del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public OffPrize delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public OffPrize delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }
}
